package cn.edu.scau.cmi.lvmingyan.abstractFactory.factory;

import cn.edu.scau.cmi.lvmingyan.abstractFactory.domain.*;

import cn.edu.scau.cmi.lvmingyan.abstractFactory.domain.*;

public class WensFactory extends AbstractFactory {
	public WensFactory(){
		
	}
	
	public Meat create(String name){
		brand="Wens";
		switch(name) {
		case "Pork":return createPork();
		case "Beef":return createBeef();
		case "Chicken":return createChicken();
		default:return null;
		}
	}
	
	public Meat createPork() {
		return new WensPork();
	}

	@Override
	public Meat createBeef() {
		return new WensBeef();
	}

	@Override
	public Meat createChicken() {
		return new WensChicken();
	}
}
